#include <utility>
#include <string>
#include <iostream>
#include "Pair.h"
using namespace std;

void test_pair();
void test_Pair();

int main(int argc, char* argv[])
{
    test_Pair();
    return 0;
}

void test_pair()
{
    pair<int, string> a(100, "aaaa");
    cout << a.first << "\t" << a.second << endl;

    pair<int, string> b(a);
    cout << b.first << "\t" << b.second << endl;

    pair<int, string> c;
    c = a;
    cout << c.first << "\t" << c.second << endl;

    pair<int, string> d;
    d = make_pair(103, "bbbb");
    cout << d.first << "\t" << d.second << endl;
}

void test_Pair()
{
    Pair<int, string> a1(1, "asass");
    cout << a1.first << "\t" << a1.second << endl;
    // a1 = make_Pair(1, "aaa");
    Pair<int, string> a2(a1);
    cout << a2.first << "\t" << a2.second << endl;

    Pair<int, string> a3;
    a3 = a1;
    cout << a3.first << "\t" << a3.second << endl;

    Pair<int, string> a4;
    a4 = make_Pair<int ,string>(1, "bbbb");
    cout << a4.first << "\t" << a4.second << endl;
}